<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
	/**
	* Set the Radio-Buttons Invisble
	*/
	function invisbleRadio() {
		// do nothing
	}

	/**
	 * Deactivates the show, edit and delete button.
	 */
	function deactivateButtons() {
		// do nothing
	}
</script>

<html:form>
	<div id="pictureTable">
	<table class="contentTable">
			<tr>
				<td><b><bean:message key="label.city" />:</b></td>
				<td>${sessionScope.departmentForm.department.zipcode} ${sessionScope.departmentForm.department.city}</td>
			</tr><tr>
				<td><b><bean:message key="label.street" />:</b></td>
				<td>${sessionScope.departmentForm.department.street} ${sessionScope.departmentForm.department.houseNumber}</td>
			</tr><tr>
				<td><b><bean:message key="label.chief" />:</b></td>
				<td>${sessionScope.departmentForm.department.chief}</td>
			</tr><tr>
				<td><b><bean:message key="label.cochief" />:</b></td>
					<td>${sessionScope.departmentForm.department.coChief}</td>
			</tr><tr>
				<td><b><bean:message key="label.telephone" />:</b></td>
				<td>${sessionScope.departmentForm.department.telephoneNumber}</td>
			</tr><tr>
				<td><b><bean:message key="label.telefax" />:</b></td>
				<td>${sessionScope.departmentForm.department.telefaxNumber}</td>
			</tr><tr>
				<td><b><bean:message key="label.eMail" />:</b></td>
				<td><a href="mailto:${sessionScope.departmentForm.department.eMail}" target="_blank">${sessionScope.departmentForm.department.eMail}</a></td>
			</tr><tr>
				<td><b><bean:message key="label.homepageURL" />:</b></td>
				<td><a href="${sessionScope.departmentForm.department.homepageURL}" target="_blank">${sessionScope.departmentForm.department.homepageURL}</a></td>
			</tr><tr>
				<td><b><bean:message key="label.members" />:</b></td>
				<td>${sessionScope.departmentForm.department.members}</td>
			</tr><tr>
				<td><b><bean:message key="label.descriptionText" />:</b></td>
				<td>${sessionScope.departmentForm.department.descriptionText}</td>
			</tr>						
	</table>
	</div>
	<div id="pictureBox">
		<a href="${sessionScope.departmentForm.department.imageURL}" rel="thumbnail"><img src="${sessionScope.departmentForm.department.imageURL}" class="picture"/></a>
		<br /><bean:message key="text.zoom" />
	</div>

	<div id="oneElementTable">
		<table class="linkedElementsTable">
				<tr>
					<th><b><bean:message key="label.linkedCarsToDept" />:</b></th>
				</tr><tr>
					<td>
						<c:forEach var="car" items="${sessionScope.departmentForm.department.cars}"
							varStatus="rowStatus">
							${car.modelName}<br />
						</c:forEach>
					</td>
				</tr>
		</table>
	</div>

</html:form>